@echo off
echo Restarting TCP Device Server...

echo Stopping existing server processes...
taskkill /f /im php.exe 2>nul

echo Waiting for processes to stop...
timeout /t 2 /nobreak >nul

echo Starting new server...
start "TCP Device Server" php server.php

echo Server restarted!
pause
